<!-- 选择器 -->
<el-date-picker
size="small"
v-model="queryForm.dateIden"
type="month"
:clearable="false"
value-format="yyyy-MM"
placeholder="选择月">
</el-date-picker>

<!--  显示转化  -->

<template v-slot="scope">
    {{ transform(scope.row.ksId) }}
  </template>


  import * as dateUtils from '@/libs/dateUtils'


  dateIden: dateUtils.getLastMonth()

transform(value) {
    if (!value) {
      return
    }
    for (let i = 0; i < this.ksOptions.length; i++) {
      if (this.ksOptions[i].value === value) {
        return this.ksOptions[i].label
      }
    }
  },


this.ksOptions = ksOptRes.data.map(ksOpt => ({ value: ksOpt.value, label: ksOpt.other }))

 if (this.queryForm.dateIden) {
        obj.date = this.queryForm.dateIden
      }